<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/template.xhtml">
	<ui:define name="content">
		<style>
.ui-dashboard-column {
	width: 40%;
	margin: 0px 50px;
}

.ui-dashboard-column .ui-panel {
	margin: 20px 0px;
}
</style>
		<div style="height: 500px">
			<p:growl id="msgs" showDetail="true" />
			<p:dashboard id="board" model="#{mainBean.model}">
				<p:ajax event="reorder" listener="#{mainBean.handleReorder}"
					update="msgs" />
				<p:panel id="sports" header="Sports">
					<p:dataTable id="donemDTable" var="kullanici"
						value="#{kullaniciBean.list}"
						paginator="#{kullaniciBean.list.size() > 10}"
						paginatorPosition="bottom" rows="10">

						<p:column>
							<f:facet name="header">
								<h:outputText value="Ad" />
							</f:facet>
							<h:outputText rendered="#{not empty kullanici.ad}"
								value="#{kullanici.ad}" />
							<h:outputText rendered="#{empty kullanici.ad}"
								value="#{appbundle.lbl_tire}" />
						</p:column>
						<p:column>
							<f:facet name="header">
								<h:outputText value="Soyad" />
							</f:facet>
							<h:outputText value="#{kullanici.soyad}" />
						</p:column>
						<p:column>
							<f:facet name="header">
								<h:outputText value="Mail" />
							</f:facet>
							<h:outputText value="#{kullanici.mail}" />
						</p:column>
						<p:column>
							<f:facet name="header">
								<h:outputText value="Rol" />
							</f:facet>
							<h:outputText value="#{kullanici.pysRole.ad}" />
						</p:column>

					</p:dataTable>
				</p:panel>

				<p:panel id="finance" header="Finance">
					<h:outputText value="Finance Content" />
				</p:panel>

				<p:panel id="lifestyle" header="Lifestyle">
					<h:outputText value="Lifestyle Content" />
				</p:panel>

				<p:panel id="weather" header="Weather">
					<h:outputText value="Weather Content" />
				</p:panel>

				<!-- p:panel id="politics" header="Politics" >
						<h:outputText value="Politics Content" />
					</p:panel-->
			</p:dashboard>
			<div style="clear: both" />
		</div>
	</ui:define>
</ui:composition>
</html>
